Try to load the JdbcTemplate
class. It should fail.
In [1]:
try {
Class.forName("org.springframework.jdbc.core.JdbcTemplate");
} catch (ClassNotFoundException ex) {
println ex
}
Out[1]:
Now, grab the related artifact with the grab mechanism.
In [2]:
#@dependency(group="org.springframework", module="spring-orm", version="3.2.5.RELEASE")
Out[2]:
You can now load the JdbcTemplate
class.
In [3]:
import org.springframework.jdbc.core.JdbcTemplate
obj = new JdbcTemplate();
obj
Out[3]: